<%--
  Created by IntelliJ IDEA.
  User: HYGK-PC
  Date: 2022/3/22
  Time: 20:32
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>登录</title>

    <link rel="stylesheet" href="${pageContext.request.contextPath}/bootstrap/css/bootstrap.min.css">
    <!-- 引入js文件时，写法不一样 -->
    <script src="${pageContext.request.contextPath}/bootstrap/js/jquery-3.5.1.min.js"></script>
    <script src="${pageContext.request.contextPath}/bootstrap/js/bootstrap.min.js"></script>

    <style>
        .form-control {
            height: 40px;
        }
    </style>
</head>
<body>

<form action="${pageContext.request.contextPath}/user/register" method="post">


    <div class="container-fluid" style="margin-top: 40px;">
        <div class="row">
            <div class="col-sm-6 col-sm-offset-3">
                <h1 class="text-center" style="font-size: 50px; font-weight: bold;">登录</h1>
            </div>
        </div>
        <!-- 登录表单 -->
        <div class="row" style="margin-top: 40px;">
            <div class="col-sm-4 col-sm-offset-4">
                <!-- 表单 -->
                <form>
                    <div class="form-group">
                        <label for="Uid">用户ID</label>
                        <input type="text" class="form-control" id="Uid" name="uid" placeholder="Please input Uid" required>
                    </div>
                    <div class="form-group">
                        <label for="Uname">用户名</label>
                        <input type="text" class="form-control" id="Uname" name="u_name" placeholder="Please input Uname" required>
                    </div>
                    <div class="form-group">
                        <label for="Uorg">所属单位</label>
                        <input type="text" class="form-control" id="Uorg" name="u_org" placeholder="Please input Uorg" required>
                    </div>
                    <div class="form-group">
                        <label for="Password">密码</label>
                        <input type="password" class="form-control" id="Password" name="u_password" placeholder="Please input Password" required>
                    </div>
                    <div class="radio">
                        <label class="radio-inline">
                            <input type="radio" name="u_gender" id="inlineCheckbox1" value="男"> 男
                        </label>
                        <label class="radio-inline">
                            <input type="radio" name="u_gender" id="inlineCheckbox2" value="女"> 女
                        </label>
                    </div>
                    <div class="radio">
                        <label class="radio-inline">
                            <input type="radio" name="u_role" id="inlineCheckbox3" value="2"> 教师用户
                        </label>
                        <label class="radio-inline">
                            <input type="radio" name="u_role" id="inlineCheckbox4" value="3"> 学生用户
                        </label>
                    </div>



                    <!--让submit清除浮动  -->
                    <div style="float: left"><span style="color: red ; font-weight: bold"></span></div>
                    <div class="clearfix">
                        <div class="col-sm-8 col-offset-2">
                            <button type="submit" style="margin-top: 40px; float: right; width: 40%;" class="btn btn-default">
                                注册
                            </button>
                        </div>
                    </div>

                </form>
            </div>
        </div>
    </div>

</form>

</body>
</html>
